import { DatePickerDateConf, DatePickerRangeConf, DatePickerCommonConf } from "./type";
/**datePicker通用默认配置 */
const defaultDatePickerCommonConf: Required<DatePickerCommonConf> = {
	maxDate: new Date(Number.MAX_SAFE_INTEGER / 2),
	minDate: new Date(0),
};
/**datePicker在type为date时的默认配置 */
const defaultDatePickerDateConf: Required<DatePickerDateConf> = Object.assign(
	{
		type: "date" as "date",
		placeholder: "请选择日期",
		disabled: false,
		clearable: true,
	},
	defaultDatePickerCommonConf
);

/**datePicker在type为daterange时的默认配置 */
const defaultDatePickerRangeConf: Required<DatePickerRangeConf> = Object.assign(
	{
		disabled: false,
		type: "daterange" as "daterange",
		startPlaceholder: "请选择开始日期",
		endPlaceholder: "请选择结束日期",
		rangeSeparator: "至",
		clearable: true,
	},
	defaultDatePickerCommonConf
);
/**datePicker默认配置 */
const defaultDatePickerConf = defaultDatePickerDateConf;

export { defaultDatePickerDateConf, defaultDatePickerRangeConf, defaultDatePickerConf };
